#include "sdl_utilities.h"

namespace sdl
{

/**
 * Returns whether a given point is inside an SDL_Rect structure or not.
 * 
 * @param x: x coordinate of the point.
 * @param y: y coordinate of the point.
 * @param rect: a handle to a rectangle.
 * @return a boolean value indicating if x, y is inside rect/
 */

bool PointInRect(int x, int y, SDL_Rect *rect)
{
    return ( 
             x >= rect->x &&
             x <= rect->x + rect->w &&
             y >= rect->y &&
             y <= rect->y + rect->h
           );          
}

};